package scau.erps.view.base;

import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 * 背景图片面板，用于放置沙盘盘面
 * @author DCJ
 *
 */
public class ImagePanel extends JPanel{
	private static final long serialVersionUID = 1L;
	public ImagePanel(){
	}
	public void paintComponent(Graphics g) {
		int x=0,y=0;     
        ImageIcon icon=new ImageIcon("images/erps.jpg");   
        g.drawImage(icon.getImage(),x,y,getSize().width,getSize().height,this);        
	}
}
